<template>
	<view class="content">
		<view style="height: 95%;">

		</view>
		<view style="display: flex;height: 5%; border: 1px solid cadetblue;">
			<view style="width: 90%;border-radius: 30px">
				<u-input v-model="sendMsg" placeholder="" :height="height" :border="border" border-color="#dadada"
					type="textarea" />
			</view>
			<view style="width: 5%;border-radius: 30px">
				<u-button type="primary" @click="send">发送</u-button>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: '',
				border: true,
				height: 70,
				placeholder: '',
				sendMsg: ''
			}
		},
		onLoad(option) {
			this.title = option.name;
			// console.log(option.id); //打印出上个页面传递的参数。
			// console.log(option.name); //打印出上个页面传递的参数。
			uni.setNavigationBarTitle({
				title: option.name
			})
		},
		methods: {
			send() {
				console.log(this.sendMsg)
			}
		}
	}
</script>

<style>
	.content {
		.content {
			background: whitesmoke;
			width: 100vw;
			height: 100vh;
		}
	}
</style>
